package com.sakura.probe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.probe.common.api.CommonResult;
import com.sakura.probe.pojo.Comment;

import java.util.List;

public interface CommentService extends IService<Comment> {
    /**
     * 获取话题下面对应的评论内容
     */
    List<Comment> listByCondition(Comment condition,int pageIndex,int pageSize);

    /**
     * 获取评论下方的回复信息
     * @param condition
     * @param commentId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    Comment listByCondition(Comment condition,Long commentId,int pageIndex,int pageSize);

    /**
     * 获取对应话题总数
     */
    Long countByCondition(Comment conditon);

}
